<?php

namespace app\common;

use Predis\Client ;

class RedisService
{
    public function __construct() {
//        phpinfo();
//        die;
    }

    /**
     * 静态调用redis
     */
    public static function select($db = 0){
        echo 33;die;
        return new Client([
            'scheme' => config('redis.scheme'),
            'host' => config('redis.host'),
            'port' => config('redis.port'),
            'database' => $db,//config('redis.database'),
            'password' => config('redis.password')
        ]);
    }

}